<%@page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html class="x-admin-sm">
    <head>
        <meta charset="UTF-8">
        <title>欢迎页面-X-admin2.2</title>
        <meta name="renderer" content="webkit">
        <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
        <meta name="viewport" content="width=device-width,user-scalable=yes, minimum-scale=0.4, initial-scale=0.8,target-densitydpi=low-dpi" />
        <link rel="stylesheet" href="./css/font.css">
        <link rel="stylesheet" href="./css/xadmin.css">
        <script src="./lib/layui/layui.js" charset="utf-8"></script>
        <script type="text/javascript" src="./js/xadmin.js"></script>
        <!--[if lt IE 9]>
          <script src="https://cdn.staticfile.org/html5shiv/r29/html5.min.js"></script>
          <script src="https://cdn.staticfile.org/respond.js/1.4.2/respond.min.js"></script>
        <![endif]-->
    </head>
    <body>
        <div class="layui-fluid">
                <div class="layui-col-sm12 layui-col-md6">
                    <div class="layui-card">
                        <div class="layui-card-header">今日交易量</div>
                        <div class="layui-card-body" style="min-height: 280px;">
                            <div id="day" class="layui-col-sm12" style="height: 300px;"></div>
                        </div>
                    </div>
                </div>
                <div class="layui-col-sm12 layui-col-md6">
                    <div class="layui-card">
                        <div class="layui-card-header">最近一周交易量</div>
                        <div class="layui-card-body" style="min-height: 280px;">
                            <div id="week" class="layui-col-sm12" style="height: 300px;"></div>
                        </div>
                    </div>
                </div>
				 <div class="layui-col-sm12 layui-col-md6">
				    <div class="layui-card">
				        <div class="layui-card-header">最近一月交易量</div>
				        <div class="layui-card-body" style="min-height: 280px;">
				            <div id="month" class="layui-col-sm12" style="height: 300px;"></div>
				        </div>
				    </div>
				</div>
				<div class="layui-col-sm12 layui-col-md6">
				    <div class="layui-card">
				        <div class="layui-card-header">最近一年交易量</div>
				        <div class="layui-card-body" style="min-height: 280px;">
				            <div id="year" class="layui-col-sm12" style="height: 300px;"></div>
				        </div>
				    </div>
				</div>
            </div>
        </div>
        </div>
    
        <script src="https://cdn.bootcss.com/echarts/4.2.1-rc1/echarts.min.js"></script>
        <script type="text/javascript">
			/* 今日交易量统计 */
        // 基于准备好的dom，初始化echarts实例
        var myChart = echarts.init(document.getElementById('day'));

        // 指定图表的配置项和数据
        var option = {
            tooltip : {
                trigger: 'axis',
                axisPointer: {
                    type: 'cross',
                    label: {
                        backgroundColor:' #FF4500 '
                    }
                }
            },
            grid: {
                top: '5%',
                right: '2%',
                left: '1%',
                bottom: '10%',
                containLabel: true
            },
            xAxis : [
                {
                    type : 'category',
                    boundaryGap : false,
                    data : ['0:00','06:00','12:00','18:00','24:00']
                }
            ],
            yAxis : [
                {
                    type : 'value'
                }
            ],
            series : [
                {
                    name:'交易额',
                    type:'line',
                    areaStyle: {normal: {}},
                    data:[120, 132, 101, 134,10],
                    smooth: true
                }
            ]
        };
        // 使用刚指定的配置项和数据显示图表。
        myChart.setOption(option);
		
		/* 最近一周交易统计 */
		// 基于准备好的dom，初始化echarts实例
		var myChart = echarts.init(document.getElementById('week'));
		// 指定图表的配置项和数据
		var option = {
		    tooltip : {
		        trigger: 'axis',
		        axisPointer: {
		            type: 'cross',
		            label: {
		                backgroundColor:'#1E90FF'
		            }
		        }
		    },
		    grid: {
		        top: '5%',
		        right: '2%',
		        left: '1%',
		        bottom: '10%',
		        containLabel: true
		    },
		    xAxis : [
		        {
		            type : 'category',
		            boundaryGap : false,
		            data : ['周一','周二','周三','周四','周五','周六','周日']
		        }
		    ],
		    yAxis : [
		        {
		            type : 'value'
		        }
		    ],
		    series : [
		        {
		            name:'交易额',
		            type:'line',
		            areaStyle: {normal: {}},
		            data:[120, 132, 101, 134, 90, 230, 210],
		            smooth: true
		        }
		    ]
		};
		// 使用刚指定的配置项和数据显示图表。
		myChart.setOption(option);
		
		/* 最近一月交易统计 */
		// 基于准备好的dom，初始化echarts实例
		var myChart = echarts.init(document.getElementById('month'));
		// 指定图表的配置项和数据
		var option = {
		    tooltip : {
		        trigger: 'axis',
		        axisPointer: {
		            type: 'cross',
		            label: {
		                backgroundColor:'#9932CC'
		            }
		        }
		    },
		    grid: {
		        top: '5%',
		        right: '2%',
		        left: '1%',
		        bottom: '10%',
		        containLabel: true
		    },
		    xAxis : [
		        {
		            type : 'category',
		            boundaryGap : false,
		            data : ['1','2','3','4','5','6','7','8','9','10',
					'11','12','13','14','15','16','17','18','19','20'
					,'21','22','23','24','25','26','27','28','29','30']
		        }
		    ],
		    yAxis : [
		        {
		            type : 'value'
		        }
		    ],
		    series : [
		        {
		            name:'交易额',
		            type:'line',
		            areaStyle: {normal: {}},
		            data:[120, 132, 101, 134, 90, 230, 210],
		            smooth: true
		        }
		    ]
		};
		// 使用刚指定的配置项和数据显示图表。
		myChart.setOption(option);
		
		/* 最近一年交易统计 */
		// 基于准备好的dom，初始化echarts实例
		var myChart = echarts.init(document.getElementById('year'));
		// 指定图表的配置项和数据
		var option = {
		    tooltip : {
		        trigger: 'axis',
		        axisPointer: {
		            type: 'cross',
		            label: {
		                backgroundColor:'#FF1493'
		            }
		        }
		    },
		    grid: {
		        top: '5%',
		        right: '2%',
		        left: '1%',
		        bottom: '10%',
		        containLabel: true
		    },
		    xAxis : [
		        {
		            type : 'category',
		            boundaryGap : false,
		            data : ['1','2','3','4','5','6','7','8','9','10','11','12月']
		        }
		    ],
		    yAxis : [
		        {
		            type : 'value'
		        }
		    ],
		    series : [
		        {
		            name:'交易额',
		            type:'line',
		            areaStyle: {normal: {}},
		            data:[120, 132, 101, 134, 90, 230, 210],
		            smooth: true
		        }
		    ]
		};
		// 使用刚指定的配置项和数据显示图表。
		myChart.setOption(option);
    </script>
    <script>
        var _hmt = _hmt || [];
        (function() {
          var hm = document.createElement("script");
          hm.src = "https://hm.baidu.com/hm.js?b393d153aeb26b46e9431fabaf0f6190";
          var s = document.getElementsByTagName("script")[0]; 
          s.parentNode.insertBefore(hm, s);
        })();
        </script>
    </body>
</html>